cpufreq: attach __exit to the (unused) cpufreq governor exit handlers
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 3 Feb 2009 18:13:22 +0000 (18:13 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 3 Feb 2009 18:13:22 +0000 (18:13 +0000)
... in order to make them disappear from the final image. Of course
they could as well be removed altogether, but I assumed that whoever
added them had a reason to do so.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/drivers/cpufreq/cpufreq_misc_governors.c
xen/drivers/cpufreq/cpufreq_ondemand.c

index 8b391d39f85d1a5438fb4c92e03a0c464aca9fbd..fb217672167003a416e8825ec772420a8cce83b1 100644 (file)
@@ -61,7 +61,7 @@ static int __init cpufreq_gov_userspace_init(void)
 }
 __initcall(cpufreq_gov_userspace_init);
 
-static void cpufreq_gov_userspace_exit(void)
+static void __exit cpufreq_gov_userspace_exit(void)
 {
     cpufreq_unregister_governor(&cpufreq_gov_userspace);
 }
@@ -106,7 +106,7 @@ static int __init cpufreq_gov_performance_init(void)
 }
 __initcall(cpufreq_gov_performance_init);
 
-static void cpufreq_gov_performance_exit(void)
+static void __exit cpufreq_gov_performance_exit(void)
 {
     cpufreq_unregister_governor(&cpufreq_gov_performance);
 }
@@ -151,7 +151,7 @@ static int __init cpufreq_gov_powersave_init(void)
 }
 __initcall(cpufreq_gov_powersave_init);
 
-static void cpufreq_gov_powersave_exit(void)
+static void __exit cpufreq_gov_powersave_exit(void)
 {
     cpufreq_unregister_governor(&cpufreq_gov_powersave);
 }
index 609540e477399d8e6b0dbf2f4d2d800dbf98d314..073d7eb37d16b6d163d7b8586df46f21c1d4cc67 100644 (file)
@@ -333,7 +333,7 @@ static int __init cpufreq_gov_dbs_init(void)
 }
 __initcall(cpufreq_gov_dbs_init);
 
-static void cpufreq_gov_dbs_exit(void)
+static void __exit cpufreq_gov_dbs_exit(void)
 {
     cpufreq_unregister_governor(&cpufreq_gov_dbs);
 }